/**
 * 
 */
package com.kathez.dao;

import java.util.List;

import com.kathez.entity.BusinessOperable;
import com.kathez.entity.KathezEntity;

/**
 * The result of the Update DAO operation.
 * @author Balaji T
 *
 */
public interface DAOUpdateResult extends DAOResult {

	/**
	 * Returns the successfully updated object. 
	 * @return
	 */
	BusinessOperable getUpdatedObject();
	
	/**
	 * Returns the list of successfully updated objects, in case multiples objects updated.
	 * @return
	 */
	List<KathezEntity> getUpdatedObjectList();
	
	/**
	 * Returns the no of objects updated by the update operation.
	 * @return
	 */
	int getUpdateCount();
	
	/**
	 * indicates whether the update operation is success or not.
	 * @return
	 */
	boolean isUpdateSuccess();
	
	/**
	 * If update operation is failed, returns the error code caused for failure
	 * @return
	 */
	String getUpdateErrCode();
	
	/**
	 * If update operation is failed, returns the error message caused for failure
	 * @return
	 */
	String getUpdateErrMsg();
}
